const app = getApp()
Component({
  properties: {
    sortList: {
      type: Array,
      value: [],
    },
    bgC: {
      type: String,
      value: '#1A1A1A'
    },
    isS: {
      type: Boolean,
      value: true
    },
    defaultValue: {
      type: Number,
      value: 0
    }
  },
  data: {
    IMGBASEURL: app.globalData.IMGBASEURL,
    statusBarHeight: app.globalData.statusBarHeight,
    draw: false,
    visible: false
  },
  methods: {
    onTabsChange(event) {
      // console.log(event.target.dataset.index);
      this.triggerEvent('onTabsChange', {
        val: event.target.dataset.index
      });
    },
    handSearch() {
      this.triggerEvent('handSearch');
    },
    // eventName(e) {
    //   this.setData({
    //     draw: e.detail
    //   })
    // },
    // singtName(e) {
    //   this.setData({
    //     draw: e.detail.draw,
    //     inspiration: e.detail.inspiration,
    //   })
    // },
    openPlan() {
      this.setData({
        draw: true
      })
    }
  },
});